package com.example.su_shi_tan_bas_lib.global;

import android.app.Application;
import android.os.Handler;


public final class Latte {
    public static Configurator getConfigurator() {
        return Configurator.getInstance();
    }

    public static <T> T getConfiguration(Object key) {
        return getConfigurator().getConfiguration(key);
    }

    public static Application getApplicationContext() {
        return getConfiguration(ConfigKeys.APPLICATION_CONTEXT);
    }

    public static Handler getHandler() {
        return getConfiguration(ConfigKeys.HANDLER);
    }


    public static String getAppVersion(){
        return getConfiguration(ConfigKeys.APP_VERSION);
    }

}